JAVA INTERVIEW QUESTION ----------------------- Is java compiled or interpreted language? Object cloning in java? How many types of memory are allocated in JVM? What is multi-threading? Is java OOP language? what is Super Class for all java Class? What is class loader? Explain Constructor and its rules? Explain this and super keyword. Can we overload constructor in java? Explain types of variables. Explain Array and its advantages and disadvantages. How will you overcome the Disadvantage Array? Explain String in java. why String is immutable? Difference between for and while loop Explain Encapsulation. Explain Inheritance and also their types. Is multiple inheritance possible in java? Explain in detail. Difference Between overloading and overriding? Can we override a method marked as final? Can we override a method marked as static? Is it possible to override the main method? Explain main method? Explain Static keyword and static block? A static method can only call other static methods. True or False? In interface, can we make method as static? In interface, can we make method as final? Difference between abstract and interface? Explain static import? What is wrapper class? what is mean by Collections? Difference between set and list? Explain methods specific to List interface? Difference between array and arraylist? Difference between arraylist and linkedlist? What is Map? How do you iterate Map? Difference between hash map and hash table? Advantages of Generics What is Exception? Explain types of exception. Difference between exception and error? What is super class of exception and error? What all keywords are used to handle exception? In how many ways we can do exception handling in java? Can we have try block without catch block? Can we have multiple catch block under single try block? Difference between throw and throws. What are the ways to write in a file? What is JDBC? what is the purpose of finalize() How many times finalize method will be invoked? who invokes finalize() Difference between Comparator and Comparable? Explain Thread life cycle Can we restart a dead thread in Java? Explain different types of thread priorities? What is JIT compiler? Explain the role of garbage collector. What is singleton class?